﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Automobile.service.BLL;
using Automobile.service.Model;
using Automobile.service.Common;
namespace Automobile.service.UI
{
    public partial class Product_Add : System.Web.UI.Page
    {
        Product_TypeBLL BLL = new Product_TypeBLL();
        SupplierBLL bl = new SupplierBLL();
        protected void Page_Load(object sender, EventArgs e)
        {
            if(!IsPostBack)
            {
                select1.DataSource =BLL.ShowProduct_Type();
                select1.DataTextField = "Product_Type_Name";
                select1.DataValueField = "Product_Type_Id";
                select1.DataBind();
                select1.Items.Insert(0,"-请选择-");

                select2.DataSource = bl.ShowSupplier();
                select2.DataTextField = "Supplier_Name";
                select2.DataValueField = "Supplier_Id";
                select2.DataBind();
                select2.Items.Insert(0, "-请选择-");

            }
        }
    }
}